#!/bin/sh
bin=`dirname "$0"`
. $bin/install.conf
READ_UTIL_CLASS=com/nokia/position/ReadUtil
READ_UTIL_CLASSJAR=$ETL_LIB_DIR/positioning_comb.jar

cd $ETL_CONF_DIR
if [ -d "combjars" ]; then
	rm -rf combjars
fi
mkdir combjars;cd combjars
for j in "${libfiles[@]}"
do
        if [ ! -f $f ]; then
                echo "Error: read_util.sh Could not find ETL artifact $f"
                exit 1
        else
		jar xf $j
	fi
done
jar cf $ETL_LIB_DIR/positioning_comb.jar com
cd ..;rm -rf combjars

echo "hadoop jar $READ_UTIL_CLASSJAR $READ_UTIL_CLASS -libjars $READ_UTIL_CLASSJAR \$@" > ${ETL_BIN_DIR}/catpos
chmod 755 ${ETL_BIN_DIR}/catpos
